Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Add superfluous_disable_command SwiftLint exception #83

Merged
merged 3 commits into from
Oct 10, 2017

Conversation

AliSoftware
Copy link
Collaborator

Fixes SwiftGen/SwiftGen#334

Avoids new warning in SwiftLint >0.22

Sadly, it seems that the only way for this exception to work is to repeat it on every swiftlint:disable annotation. As mentioned in SwiftGen/SwiftGen#334, disabling it once at the beginning on the files doesn't seem to have any effect, it seems to only have effect to the rule we're currently disabling, hence it having to be repeated every time :-/

I also had to break down some // swiftlint:disable lines, disabling multiple rules at once, into multiple separate // swiftlint:disable lines now, since ironically those lines disable 4-5 rules at once began to be too long… triggering the "line too long" SwiftLint warning (I don't think this issue could have been more meta at that point ^^)

Olivier Halligon added 2 commits October 10, 2017 15:05
@AliSoftware AliSoftware requested a review from djbe October 10, 2017 13:11
Copy link
Member

@djbe djbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me.

Just noticed that swiftlint released a bugfix, so we can reduce the changes a bit.

@AliSoftware
Copy link
Collaborator Author

Will update the changes to reduce the diff and be compatible with 0.23.1, as not being able to disable that rule once for all was a SwiftLint bug.

@AliSoftware
Copy link
Collaborator Author

AliSoftware commented Oct 10, 2017

@djbe still ok to merge even wth my last commit added to the mix?

Copy link
Member

@djbe djbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AliSoftware AliSoftware merged commit ed77a61 into master Oct 10, 2017
@AliSoftware AliSoftware deleted the feature/superfluous_disable branch October 10, 2017 21:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants